<template>
    <div>
        <el-checkbox label="1" v-model="checkbox1" @change="check1"></el-checkbox>
       <div v-if="checkbox1">
        <el-text>{{ name }}</el-text>
       </div>
    </div>
</template>

<script>

export default {
    data(){
        return{
            checkbox1: true,//标识单选框状态
            name: '王小虎',
        }
    },
    methods:{
        check1(){
            const {checkbox1} = this;
            console.log("===",checkbox1)
        }
    }
}
</script>
<style scoped>

</style>